package omg.ligong.dao;

import java.util.List;

import omg.ligong.domain.College;

public interface CollegeDAO {
	/**
	 * 添加学院
	 * 
	 * @param courseClass
	 * @throws Exception
	 */
	void addCollege(College college) throws Exception;

	/**
	 * 删除学院
	 * 
	 * @param className
	 * @throws Exception
	 */
	void delCollege(String className) throws Exception;

	/**
	 * 列出学院
	 * 
	 * @param offset
	 * @param count
	 * @return
	 * @throws Exception
	 */
	List listCollege(int offset, int count) throws Exception;

	/**
	 * 修改学员名和enable
	 * 
	 * @param srcName
	 * @param destName
	 * @throws Exception
	 */
	void modifyCollege(String srcName, String destName, String desc,boolean enable)
			throws Exception;
	

	/**
	 * 根据类型名查找
	 * 
	 * @param className
	 * @return
	 * @throws Exception
	 */
	College findCollegeByName(String className) throws Exception;

	/**
	 * 学院的总数
	 * 
	 * @return
	 * @throws Exception
	 */
	int countCollege() throws Exception;

	/**
	 * 设为是否可用
	 * 
	 * @throws Exception
	 */
	void setUsable(String name, boolean enable) throws Exception;

}
